ia.EventDispatcher Class
Contains code to allow objects to dispatch events and add listeners.
Constructor
ia.EventDispatcher
()
Item Index
Methods
addEventListener
(
-
eventType
-
fnc
-
obj
Add an event listener.
Parameters:
-
eventType
StringThe type of event to listen for.
-
fnc
FunctionThe function to call when the event occurs.
-
obj
ObjectAn optional parent object.
dispatchEvent
(
-
event
Dispatch an event to the listeners.
Parameters:
-
event
ObjectThe event object.
removeListener
(
-
obj
Removes all event listeners for the given object.
Parameters:
-
obj
ObjectThe object.